package commandDemo;

import commandDemo.impl.GarageDoor;
import commandDemo.impl.Light;

public class RemoteControlTest {
    public static void main(String[] args) {
        SimpleRemoteControl simpleRemoteControl = new SimpleRemoteControl();
        Light mLight = new Light("Kitchen");
        Command command = new LightOnCommand(mLight);
        simpleRemoteControl.setCommand(command);
        simpleRemoteControl.buttonWasPressed();

        GarageDoor garageDoor = new GarageDoor();
        GarageDoorOpenCommand garageDoorOpenCommand = new GarageDoorOpenCommand(garageDoor);
        simpleRemoteControl.setCommand(garageDoorOpenCommand);
        simpleRemoteControl.buttonWasPressed();
    }
}
